//
// Created by zhupi on 2024/8/31.
//

#include "work_bench.h"

#include <QHBoxLayout>
#include <QVBoxLayout>

WorkBench::WorkBench(QWidget *parent) : QWidget(parent)
{

}

void WorkBench::Initial() {

    InitWidget();
    InimassageAndCommand();
}

void WorkBench::InitWidget() {

    workWindow_ = new QWidget(this);
    workWindow_->setStyleSheet("background-color: gray;");
    treeWidget_ = new WorkTreeWidget(this);
    treeWidget_->Initial();
    massageAndCommand_ = new QMainWindow(this);

    QHBoxLayout *hbox = new QHBoxLayout;
    hbox->setContentsMargins(0,0,0,0);
    hbox->addWidget(treeWidget_);
    hbox->addWidget(workWindow_);

    QVBoxLayout *mainVbox = new QVBoxLayout;
    mainVbox->setContentsMargins(0,5,0,0);
    mainVbox->addLayout(hbox);
    mainVbox->addWidget(massageAndCommand_);
    this->setLayout(mainVbox);
}

void WorkBench::InimassageAndCommand() {
//    massageAndCommand_
}
